package com.etooling.framework.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etooling.framework.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    // 自定义添加通过用户名称模糊查找用户信息
    IPage<Map<String, Object>> findEmployee(@Param(Constants.WRAPPER) QueryWrapper<Map<String, Object>> queryWrapper, Page<Map<String, Object>> page);

}